<!-- 视频首页 -->
<template>

	<view class="video_box">
		<Home v-if='current==1' ref='child' />
		<Order v-else ref='child'/>

		<u-tabbar v-model="current" :list="list" :mid-button="false" @change='onChange' inactive-color="#BFBFBF" :active-color="vuex_config.themeColor1" ></u-tabbar>
	</view>

</template>



<script>
import { pageShare } from '@/mixins/pageShare';
	import Home from './pane/home'
	import Order from './pane/order'
	export default {
		mixins:[pageShare],
		components: {
			Home,
			Order
		},
		data() {
			return {
				current: 1,
				list: [{
						iconPath: "home",
						selectedIconPath: "e6eb",
						text: '首页',
						pagePath:'/pages/index/index'
					},
					{
						iconPath: "e601",
						selectedIconPath: "e601",
						text: '视频专区',
					},
					{
						iconPath: "order",
						selectedIconPath: "order",
						text: '订单',
					},
				],
				activeColor: '#00A6F8',
			}
		},
		onShareAppMessage: function() {
			return this.getShareAppMessage();
		},
		onShareTimeline: function() {
			return this.getShareTimeline();
		},
		onReachBottom(){
			this.$refs.child._onReachBottom()
		},
		methods: {
			onChange(e) {
				this.current = e
			},
			
		}
	}
</script>

<style lang='scss' scoped>



</style>
